Skip to content

Avoid forwarding unrelated request parameters to Calcite from the /sql handler#4607

Open
janhoy wants to merge 4 commits into
apache:mainfrom
janhoy:calcite-sql-params
Open

Avoid forwarding unrelated request parameters to Calcite from the /sql handler#4607
janhoy wants to merge 4 commits into
apache:mainfrom
janhoy:calcite-sql-params

Conversation

@janhoy

@janhoy janhoy commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

The /sql handler needlessly forwarded unrelated request parameters to Calcite, which was brittle. Now always accept numWorkers and aggregationMode which are the ones Solr care about. Forward to Calcite all params listed in the new sysprop solr.sql.connection.params.allowed, defaulting to a set of the 11 most useful calcite params.

Also there was some dead code in SQLHandler. Removing handling of properties workerCollection, workerZkhost, and the corresponding defaultWorkerCollection.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 6, 2026
@janhoy janhoy requested a review from risdenk July 6, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation module:sql tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant